package com.honeycomb.user.service;

import java.util.Stack;

import com.honeycomb.common.PositionInfo;
import com.honeycomb.common.base.service.BaseService;
import com.honeycomb.user.dto.UserLoginInfo;
import com.honeycomb.user.dto.UserinfoDto;

/**
 * 用户Service接口
 * 
 * @author Wangyu
 */
public interface UserService extends BaseService {
	
	/**
	 * 如果是合法用户，返回其ID。否则返回null
	 * @param user
	 * @return
	 */
	UserinfoDto doCheckUserIsLegal(UserLoginInfo user);
	
	boolean doCheckEmailAlreadyExist(String user_id);
	UserinfoDto getUser(Long user_id);
	UserinfoDto doAddUserinfo(UserLoginInfo loginInfo, UserinfoDto userInfo);
	
	boolean doUpdate01(UserinfoDto user);
	boolean doUpdate02(Long userId, UserLoginInfo user);
	void doAddPosition(Long userId, PositionInfo position);

	Stack<PositionInfo> getFavourPositions(Long userId);
}
